package com.qfedu.meidijiaju.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Card {
    @ApiModelProperty("卡包表编号")
    private int id;
    @ApiModelProperty("卡包类型")
    private int type;
    @ApiModelProperty("卡包名称")
    private String cardName;
    @ApiModelProperty("卡包信息")
    private String info;
    @ApiModelProperty("服务地址")
    private String address;
    @ApiModelProperty("截止日期")
    private Date date;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("购买金额")
    private String money;
    @ApiModelProperty("机器条码")
    private String num;
    @ApiModelProperty("所属用户id")
    private int uid;

    private User user;
}
